const http = uni.$u.http

import qs from 'qs'
// 登录
export const login = (params, config = {}) => http.post('/api/login', params, config)

// 小程序授权登录
export const minlogin = (params, config = {}) => http.post('/api/minlogin', params, config)

// 用户信息
export const userinfo = (config = {}) => http.get('/api/user/info', config)

// 忘记密码
export const forget_password = (params, config = {}) => http.post('/api/forget_password', params, config)

// 退出登录
export const login_out = (config = {}) => http.get('/api/login_out', config)

// 注册新账号
export const register = (params, config = {}) => http.post('/api/register', params, config)

// 绑定已有账户
export const bind_account = (params, config = {}) => http.post('/api/bind_account', params, config)

// 修改用户信息
export const useredit = (params, config = {}) => http.post('/api/user/edit', params, config)

// 我的地址
export const addresslst = (config = {}) => http.get('/api/user/address/lst', config)

// 地址详情
export const addressdetail = (id, config = {}) => http.get('/api/user/address/detail/' + id, config)

// 新增地址
export const addresscreate = (params, config = {}) => http.post('/api/user/address/create', params, config)

// 修改地址
export const addressupdate = (id, params, config = {}) => http.post('/api/user/address/update/' + id, params, config)

// 优惠券列表
export const couponlst = (config = {}) => http.get('/api/user/coupon/lst', config)

// 获取默认地址
export const addressdefault = (config = {}) => http.get('/api/user/address/default', config)

// 提交售后
export const aftersales = (params, config = {}) => http.post('/api/after/sales', params, config)

// 发货须知列表
export const articlelst = (config = {}) => http.get('/api/article/lst', config)

// 文章详情
export const articledetail = (id, config = {}) => http.get('/api/article/detail/' + id, config)

// 获取验证码
export const get_captcha = (config = {}) => http.get('/api/get_captcha', config)

// 签署运输协议
export const singlog = (params, config = {}) => http.post('/api/sing/log', params, config)

// 城市列表
export const cityslst = (config = {}) => http.get('/api/order/citys/lst', config)

// 出发地列表
export const departureslst = (config = {}) => http.get('/api/order/departures/lst', config)

// 目的地列表
export const storehouseslst = (config = {}) => http.get('/api/order/storehouses/lst', config)

// 快递类型列表
export const shipingslst = (config = {}) => http.get('/api/order/shipings/lst', config)

// 渠道列表
export const channelslst = (config = {}) => http.get('/api/order/channels/lst', config)

// 价格计算器
export const explesssend = (params, config = {}) => http.post('/api/order/expless/send', params, config)

// 文本翻译
export const targetlang = (config = {}) => http.get('/api/order/target/lang', config)

// 我的订单
export const orderlst = (config = {}) => http.get('/api/order/lst', config)

// 售后列表
export const saleslst = (config = {}) => http.get('/api/after/sales/lst', config)

// 添加包裹
export const ordercreate = (params, config = {}) => http.post('/api/order/create', params, config)

// 申请详情
export const agentinfo = (config = {}) => http.get('/api/agent/info', config)

// 提交申请
export const agentcreate = (params, config = {}) => http.post('/api/agent/create', params, config)

// 申请提现
export const withdrawcreate = (params, config = {}) => http.post('/api/agent/withdraw/create', params, config)

// 微信下单
export const lj_order = (params, config = {}) => http.post('/api/order/lj_order', params, config)

// 立即支付
export const lj_pay = (params, config = {}) => http.post('/api/order/lj_pay', params, config)

// 提现记录
export const withdrawlst = (config = {}) => http.get('/api/agent/withdraw/lst', config)

// 我的团队
export const teamlst = (config = {}) => http.get('/api/agent/team/lst', config)

// 收益记录
export const agentorderlst = (config = {}) => http.get('/api/agent/order/lst', config)

// 获取订单信息
export const orderinfo = (id, config = {}) => http.get('/api/order/info/' + id, config)

// 订单轨迹
export const orderlog = (config = {}) => http.get('/api/order/log', config)
